<?php if(!defined('PATH_HD'))exit;
$db->exe("DROP TABLE IF EXISTS `ec_flag_arc1`");
$db->exe("CREATE TABLE `ec_flag_arc1` (
  `flag_fid` smallint(6) NOT NULL COMMENT '属性主键',
  `arc_aid` int(10) unsigned NOT NULL COMMENT '文章主键',
  PRIMARY KEY (`flag_fid`,`arc_aid`),
  KEY `fk_ec_flag_has_ec_arc1_ec_arc1_idx` (`arc_aid`),
  KEY `fk_ec_flag_has_ec_arc1_ec_flag1_idx` (`flag_fid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='属性与文章多对多关系中间表'");

?>